package com.example.mybatis.mapper;

import com.example.mybatis.model.ArticleInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface ArticleInfoMapper {
    @Select("select * from article_info as a left join user_info as b " +
            "on a.uid = b.id where b.id = #{id}")
    ArticleInfo queryArticleById(Integer id);
}
